﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.peddlerUI.peddlerMarketUI.common {
    import flash.events.*;
    import Engine.Managers.*;
    import flash.display.*;
    import org.aswing.*;
    import Display.aswingui.*;

    public class ImageLoadPanel extends JPanel {

        private var m_loader:Loader;
        private var m_url:String;

        public function ImageLoadPanel(_arg1:LayoutManager=null){
            super(new SoftBoxLayout(SoftBoxLayout.CENTER));
        }
        public function setData(_arg1:String):void{
            if (this.m_url == _arg1){
                return;
            };
            this.m_url = _arg1;
            this.m_loader = LoadingManager.load(_arg1, this.loadComplete);
        }
        private function loadComplete(_arg1:Event):void{
            var _local2:AssetPane = new AssetPane(this.m_loader.content);
            this.removeAll();
            this.append(_local2);
            ASwingHelper.prepare(this);
        }

    }
}//package Display.peddlerUI.peddlerMarketUI.common 
